package oop.java0324.multidiver;

public class MultiDiver {
    String name;

    public MultiDiver(String name) {
        this.name = name;
    }
    public void diver(Car car){
        car.showInfo();
        car.run();
        car.stop();

    }
    public void diver(Air air){
        air.showInfo();
        air.fly();
        air.down();
    }
    public void diver(Tank tank){
        tank.showInfo();
        tank.start();
        tank.climb();

    }
    public void diver(Tractors tractors){
        tractors.showInfo();
        tractors.start();
        tractors.accelerate();
    }
    public void diver(Ship ship){
        ship.showInfo();
        ship.start();
        ship.ring();
        ship.stop();
    }
}
